package yxy.game.pm2.bean.module.rank;

import yxy.game.pm2.bean.area.AreaGroupBean;

//战区相关排名
public abstract class AreaGroupRankModule extends RankModule {
	private int areaGroupId;

	public int getAreaGroupId() {
		return areaGroupId;
	}

	public void setAreaGroupId(int areaGroupId) {
		this.areaGroupId = areaGroupId;
	}

	public AreaGroupRankModule(AreaGroupBean areaGroupBean) {
		if (areaGroupBean != null) {
			setAreaGroupId(areaGroupBean.getGroupId());
		}
	}

	@Override
	protected String rankKey() {
		return String.format("AREAGROUP:%s:RANK:%s", getAreaGroupId(), rankName());
	}

	//合战区的排行榜处理
	public void mergeAreaGroup() {
		//
	}

}
